package com.ruoyi.dynamic.model.pojo.request.app;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Getter
@Setter
@Schema(description = "APP-房间发布贴纸内容")
public class AppRoomPasterAddRequest {
    @Schema(description = "贴纸id")
    @NotNull(message = "贴纸不能为空")
    private Long id;

    @Schema(description = "贴纸内容")
    @NotBlank(message = "贴纸内容不能为空")
    @Length(max = 30, message = "贴纸内容最大30字符")
    private String content;

    @Schema(description = "房间id")
    @NotNull(message = "房间id不能为空")
    private Long roomId;

    @Schema(description = "画面位置x")
    private Integer xLocation = 0;

    @Schema(description = "画面位置y")
    private Integer yLocation = 30;
}
